Configuring Charge Codes

The Charge Codes table lets you configure metering tones:

Metering tones that the device generates to the Tel side on its FXS interfaces.

You can configure up to 25 different Charge Codes, where each table row represents a Charge Code. Each Charge Code can include up to four different time periods in a day (24 hours). The device selects the time period by comparing the device's current time to the end time of each time period of the selected Charge Code. The device generates the number of pulses (units) upon call connection (answer), and from that point on, it generates a pulse (unit) for each interval. If a call starts at a certain time period and crosses to the next period, the information of the next time period is used.

To assign Charge Codes to Tel-to-IP calls, use the Tel-to-IP Routing table.

The Charge Codes table is applicable only to the following interfaces:
FXS
To enable generation of metering tones, see Configuring Metering Tones.

The following procedure describes how to configure Charge Codes through the Web interface. You can also configure it through ini file [ChargeCode] or CLI (configure voip > gateway dtmf-supp-service charge-code).

To configure a Charge Code:
1. Open the Charge Codes table (Setup menu > Signaling & Media tab > Gateway folder > Routing > Charge Codes).
2. Click New; the following dialog box appears:

3. Configure a Charge Code according to the parameters described in the table below.
4. Click Apply.

Charge Codes Table Parameter Descriptions

Parameter

Description

'Index'

[Index]

Defines an index number for the new table row.

Note: Each row must be configured with a unique index.

'Name'

charge-code-name

[ChargeCodeName]

Defines a descriptive name, which is used when associating the row in other tables.

The valid value is a string of up to 40 characters.

Note:

Configure each row with a unique name.
The parameter value cannot contain a forward slash (/).

'End Time (1 - 4)'

end-time-<1-4>

[EndTime<1-4>]

Defines the time at which this charging code ends.

The valid value is a time in 24-hour format (hh). For example, to denote 4 AM, configure the parameter to "04" (without quotation marks).

Note:

The first time period always starts at midnight (00).
It is mandatory that the last time period of each rule end at midnight (00). This prevents undefined time frames in a day.

'Interval (1 - 4)'

interval-<1-4>

[PulseInterval<1-4>]

Defines the interval (in tenths of a second) for charging the call. The first interval starts from when the call is answered (connected).

FXS interfaces: Defines the interval between every generated pulse.

For example, if you configure the parameter to 20, the device sends a charge every 2 seconds (i.e., 20 x 0.1). If the call duration is 10 seconds, the total call charge amount (excluding the connection charge, which is configured by the 'Amount On Answer' parameter) is 5. In other words, 10 seconds divided by 2-second intervals is 5, and then 5 multiplied by the default interval charge of 1 is 5.

Note:

By default, the charged amount sent per interval is one pulse (unit).

'Amount On Answer (1 - 4)'

amount-on-answer-<1-4>

[PulsesOnAnswer<1-4>]

Defines the one-time call charge upon call connection (call answer).

FXS interfaces: Defines the number of charging pulses that the device generates to the Tel side when the call is answered.